<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
 <%@ include file="/common/query.jsp"%>
<%@ include file="/common/det.jsp"%>
<script>

        $(function(){
            var fenpeiView = getQueryStringByDecode("fenpeiView");
            if(fenpeiView!=null && fenpeiView=="true"){
                initFenpeiView();
			}else if(fenpeiView!=null && fenpeiView=="member"){
                initMemberView();
            }else{
                init();
			}

        });
        function init(){
            var adminSystemOrganId = getQueryStringByDecode("adminSystemOrganId");
            var columns = [
                {field:'id',title:'id',hidden:true},
                {field:'name',title:'姓名',require:true,search:{type:"single"}},
                {field:'adminSystemOrganId',title:'adminSystemOrganId',hidden:true,defaultValue:adminSystemOrganId},

                {field:'loginName',title:'登陆名',require:true,search:{type:"single"}},
                {field:'password',title:'密码',type:"password",search:{type:"single"}}
            ];

            url='/system/user/manager?search_EQ_adminSystemOrganId='+adminSystemOrganId;

            createQuery('body',columns,{pager:false,edit:true,add:true,del:true,heji:false,singleSelect:true},url);
        };

		function initFenpeiView() {
            var columns = [
                {field:'id',title:'id',hidden:true},
                {field:'name',title:'姓名',require:true,search:{type:"single"}},
            ];

            url='/system/user/manager?';

            createQuery('body',columns,{pager:false,edit:false,add:false,editBtn:false,del:false,heji:false,singleSelect:true},url);
        }

        function initMemberView() {
            var columns = [
                {field:'id',title:'id',hidden:true},
                {field:'name',title:'姓名',require:true,search:{type:"single"}},
            ];

            url='/system/user/manager?';

            createQuery('body',columns,{searchBar:{hidden:true},pager:false,edit:false,add:false,editBtn:false,del:false,heji:false,singleSelect:true},url);
        }
</script>
</head>
<body>
	  <div id="body"></div>
</body>
</html>